package com.dianjing.dianqun.service.dianpai;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dianjing.dianqun.common.base.CrudService;
import com.dianjing.dianqun.dao.dianpai.DianPaiCommentReplyMapper;
import com.dianjing.dianqun.model.DianPaiCommentReply;

/**
 * @date : 2017年10月24日
 * 
 * @author: baoyongtao
 * 
 * @see :
 * 
 */

@Service
@Transactional
public class DianPaiCommentReplyService extends CrudService<DianPaiCommentReplyMapper, DianPaiCommentReply> {

	@Autowired
	private DianPaiCommentReplyMapper commentReplyMapper;

	/**
	 * 根据评论id查询所有回复
	 * @param id
	 * @return
	 */
	public List<DianPaiCommentReply> findReplyByCommetId(Integer id,Integer userId) {
		return commentReplyMapper.findReplyByCommetId(id,userId);
	}

 
}
